package com.yy.datatable.service.impl;

import com.yy.datatable.DataTableDao;
import com.yy.datatable.entity.DataTable;
import com.yy.datatable.service.DataTalbeSer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DataTableSerImpl implements DataTalbeSer {

    @Autowired
    private DataTableDao dao;
    @Override
    public DataTable save(DataTable dataTable) {
        return dao.save(dataTable);
    }

    @Override
    public void del(DataTable dataTable) {
        dao.delete(dataTable);
    }

    @Override
    public DataTable findByKey(String dataKey) {
        return dao.findByDataKey(dataKey);
    }
}
